<p id="notice"><%= notice %></p>

<h3>今日订餐人数:<%= @count %></h3>
<table class="table table-striped">
  <thead>
  <tr>
    <th>姓名</th>
    <th>是否订餐</th>

    <th colspan="3"></th>
  </tr>
  </thead>

  <tbody>

      <% @orings.each do |ording| %>
          <tr>
            <td><%= ording.name %></td>
            <% if ording.ording==1 %>
                <td><%= link_to '取消订餐', "users/ording/#{ording.uid}/#{ording.oid}", data: {confirm: '想清楚工作完成了?'} %></td>
            <% else %>
                <td><%= link_to '订餐', "users/ording/#{ording.uid}", data: {confirm: '确定要加班么?'} %></td>
            <% end %>

          </tr>

      <% end %>

  </tbody>
</table>
<br>

<%= link_to '首页', '/' , class:""%>